﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Script.Serialization;
using System.Data;
using RADB;

namespace WaiterService
{
    public partial class OrderStatusList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.ContentType = "application/x-javascript";
            IDataTransfer DTO = (IDataTransfer)Application["DTO"];
            JavaScriptSerializer serializer = (JavaScriptSerializer)Application["serializer"];

            string logedin = Request["logedin"];

            if (logedin != "yes")
                return;

            DataTable dt = DTO.getOrderStatusList();
            Response.Output.Write("({0})", serializer.Serialize(dt));
        }
    }
}